package com.moli.iov.open.constants;

/**
 * <p>
 * 常量
 * </p>
 *
 * @author zql
 * @since 2019/9/23 14:16
 */
public class Constant {

  /**
   * redis 缓存前缀
   */
  public static final String REDIS_PREFIX = "IOV:OPEN:";

  /**
   * appId缓存accessToken的key
   */
  public static final String APPID_ACCESS_TOKEN_KEY = "APPID:ACCESS_TOKEN:";

  /**
   * access_token 缓存key
   */
  public static final String ACCESS_TOKEN_KEY = REDIS_PREFIX + "ACCESS_TOKEN:";

  /**
   * access_token的企业信息缓存key
   */
  public static final String TOKEN_COMPANY_KEY = REDIS_PREFIX + "COMPNAY:";

  /**
   * access_token的到期时间 毫秒
   */
  public static final Long EXPIRES_IN = 7200L;

  /**
   * request中客户端信息
   */
  public static final String DEFAULT_REQUEST_CLIENT = "clientInfo";

}
